package com.rain.feign.orders.api;

import com.rain.feign.orders.hystrix.OrderHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author: wu
 * @date: 2021/4/4
 */
@FeignClient(value = "${instance.orders.name}",fallback = OrderHystrix.class)
public interface OrderFeign {

    /**
     * 下单
     * @author wu
     * @date 2021/4/4 21:54
     * @return {@link Boolean}
     */
    @GetMapping("/orders/saveOrder")
    Boolean saveOrder();
}
